* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style-type: none;
}

.father {
    position: relative;
    margin: 100px auto;
    width: 500px;
    height: 500px;
    /* background-color: pink; */
    transform-style: preserve-3d;
    animation: rotate-frame 18s infinite linear;
}

@keyframes rotate-frame {
    from {
        transform: rotate3d(1,1,0,0deg);
    }
    to {
        transform: rotate3d(1,1,0,360deg);
    }
}

.father div ul {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background-color: rgb(226, 217, 218);
    position: relative;
}
.father div ul li {
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
}
.son1 ul li {
    left: 50%;
    margin-left: -15px;
    top: 50%;
    margin-top: -15px;
}

.son2 ul li:first-child {
    left: 10px;
    bottom: 10px;
}

.son2 ul li:last-child {
    right: 10px;
    top: 10px;
}

.son3 ul li:first-child {
    left: 10px;
    bottom: 10px;
}

.son3 ul li:nth-child(2) {
    left: 50%;
    margin-left: -15px;
    top: 50%;
    margin-top: -15px;
}

.son3 ul li:last-child {
    right: 10px;
    top: 10px;
}

.son4 ul li:nth-child(1) {
    left: 10px;
    top: 10px;
}

.son4 ul li:nth-child(2) {
    right: 10px;
    top: 10px;
}

.son4 ul li:nth-child(3) {
    left: 10px;
    bottom: 10px;
}

.son4 ul li:nth-child(4) {
    right: 10px;
    bottom: 10px;
}

.son5 ul li:nth-child(1) {
    left: 10px;
    top: 10px;
}

.son5 ul li:nth-child(2) {
    right: 10px;
    top: 10px;
}

.son5 ul li:nth-child(3) {
    left: 50%;
    top: 50%;
    margin-top: -15px;
    margin-left: -15px;
}

.son5 ul li:nth-child(4) {
    left: 10px;
    bottom: 10px;
}

.son5 ul li:nth-child(5) {
    right: 10px;
    bottom: 10px;
}

.son6 ul li:nth-child(1) {
    left: 10px;
    top: 5px;
}

.son6 ul li:nth-child(2) {
    right: 10px;
    top: 5px;
}

.son6 ul li:nth-child(3) {
    left: 10px;
    top: 35px;
}

.son6 ul li:nth-child(4) {
    left: 10px;
    top: 65px;
}

.son6 ul li:nth-child(5) {
    right: 10px;
    top: 35px;
}

.son6 ul li:nth-child(6) {
    right: 10px;
    top: 65px;
}

/* 旋转 */
.son1 {
    position: absolute;
    left: 100px;
    top: 100px;
    transform: translateZ(100px);
}

.son2 {
    position: absolute;
    left: 200px;
    top: 100px;
    transform: rotateY(-90deg);
    transform-origin: left;
}

.son3 {
    position: absolute;
    left: 0px;
    top: 100px;
    transform: rotateY(90deg);
    transform-origin: right;
}

.son4 {
    position: absolute;
    left: 100px;
    top: 200px;
    transform: rotateX(90deg);
    transform-origin: top;
}

.son5 {
    position: absolute;
    left: 100px;
    top: 0;
    transform: rotateX(-90deg);
    transform-origin: bottom;
}

.son6 {
    position: absolute;
    left: 100px;
    top: 100px;
}